/**
 * @author Team 2 
 * To Calculate the L2 Norm of the function
 * @return L2 Norm of function in the domain specified
 */

package twoD.hofem;

public class L2Norm implements NormOnRToR {
	
	/*
	 * Returns the L2 Norm or the L2 Inner Product of the function
	 * @see math.NormOnRToR#valueAt(math.FunctionRToR)
	 */

	public double valueAt(FunctionRToR u) {
//		double f = Integrator.integrate(FMath.multiply(u, u));
//		return Math.sqrt(f);
		return new L2ScalarProduct().valueAt(u, u);
	}

}
